Skip to main content

Path Exist

AutomatR.DefaultActivities.FileAndFolder.PathExist

The "Path Exist" activity in AutomatR is designed to check whether a specified file or folder path exists on your local drive. This activity, falling under the File category, provides a simple way to verify the existence of a path within automation workflows.

Properties

NameDescription
Input
PathSpecifies the full path of the file or folder that needs to be verified for existence. String variables containing the path.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. Enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Path Exist" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ExistOutputs the result (true or false) based on the existence of the specified path. Boolean variables to store the existence status.

How to use:

  1. Drag and drop the "Path Exist" activity onto the workflow.
  2. Configure the properties by specifying the path to be checked for existence.
  3. Optionally, configure the delay.
  4. Execute the workflow to determine whether the specified path exists.

Example: Consider an example where the "Path Exist" activity is used to check whether a file named "workbook.csv" exists in the "C:\sample files\" directory:

Path Exist:
Path: "C:\sample files\workbook.csv"
Exist: isPathExist

In this example, the activity checks for the existence of the "workbook.csv" file in the specified path. The result (true or false) is stored in the Boolean variable "isPathExist" for further handling in the workflow.